package JSE_01.StringBuilder.demo01;

public class Demo03 {
    public static void main(String[] args){
        // string转StringBuilder
        String str1="Hello";
        System.out.println("str:"+str1);
        StringBuilder str2=new StringBuilder(str1);
        str2.append(" World");
        System.out.println("Str:"+str2);

        // StriungBuilder转String
        String s=str2.toString();
        System.out.println("s:"+s);
    }

}
